package com.yds.dubbo.zipkin.provider.impl;

import com.yds.dubbo.zipkin.api.GreetingService;
import com.yds.dubbo.zipkin.api.HelloService;

/**
 * @author liuhongzhen
 * @date 2023/3/24 15:55
 */
public class GreetingServiceImpl implements GreetingService {

    private HelloService helloService;

    public void setHelloService(HelloService helloService) {
        this.helloService = helloService;
    }

    @Override
    public String greeting(String message) {
        return "greeting, " + helloService.hello(message);
    }
}
